package com.kungfuhacking.wristbandpro.my.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Aaron on 15/11/10.
 */
public class Family implements Parcelable {

    private String name;
    private String workUnit;
    private String phoneNum;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWorkUnit() {
        return workUnit;
    }

    public void setWorkUnit(String workUnit) {
        this.workUnit = workUnit;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeString(this.workUnit);
        dest.writeString(this.phoneNum);
    }

    public Family() {
    }

    protected Family(Parcel in) {
        this.name = in.readString();
        this.workUnit = in.readString();
        this.phoneNum = in.readString();
    }

    public static final Parcelable.Creator<Family> CREATOR = new Parcelable.Creator<Family>() {
        @Override
        public Family createFromParcel(Parcel source) {
            return new Family(source);
        }

        @Override
        public Family[] newArray(int size) {
            return new Family[size];
        }
    };
}
